import os

folder_name = input('请输入要重命名的文件夹:')

file_names = os.listdir('../'+folder_name)
print(file_names)

# 要注意路径的问题
# for name in file_names:
# 	print(name)
# 	older_file_name = folder_name+'/'+name
# 	new_file_name = folder_name+'/'+'mac_mini'+name
# 	os.rename(older_file_name,new_file_name)